//
//  WSJTalbeView.m
//  WC
//
//  Created by wsj2015 on 16/3/14.
//  Copyright © 2016年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "WSJTalbeView.h"



@implementation WSJTalbeView


- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style
{
    if (self = [super initWithFrame:frame style:style]) {
        self.tableFooterView = [UIView new];
        UITapGestureRecognizer *tap =[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
        [self addGestureRecognizer:tap];
    }
    return self;
    
}
- (void)tapAction:(UITapGestureRecognizer *)tap{
    tap.cancelsTouchesInView =NO;
    if (self.tapAction) {
        self.tapAction();
    }
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
